
app.controller('homeCtrl',function($scope,$http){
	var mySwiper = new Swiper ('.swiper-container', {
    direction: 'horizontal',
    loop: true,
    autoplay : 1000,
    // 如果需要分页器
    pagination: '.swiper-pagination',
   
  });
  $http.get('../php/home_dish.php?').success(function(data){
  	$scope.hdh = data;
  	console.log(data);
  });
  $http.get('../php/home_food.php?').success(function(data){
  	$scope.hdf = data;
  	console.log(data);
  });
  $http.get('../php/home_pro.php?').success(function(data){
  	$scope.hdp = data;
  	console.log(data);
  })
})
